package cn.com.open.itembank.dto;

import cn.com.open.itembank.common.BaseModel;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lucky on 2017/11/21.
 */
public class TestPaperModel extends BaseModel {
    public TestPaperModel() {
        this.model = null;
        this.parts = null;
        this.Items = null;
    }

    /**
     * 试卷模型
     */
    private PaperModel model;

    /**
     * 部分列表
     */
    private List<PaperPart> parts;

    /**
     * 试题列表
     */
    private List<Object> Items;

    /**
     * Gets model.
     *
     * @return the model
     */
    public PaperModel getModel() {
        return model;
    }

    /**
     * Sets model.
     *
     * @param model the model
     */
    public void setModel(PaperModel model) {
        this.model = model;
    }

    /**
     * Gets parts.
     *
     * @return the parts
     */
    public List<PaperPart> getParts() {
        if (parts == null) {
            parts = new ArrayList<>();
        }
        return parts;
    }

    /**
     * Gets items.
     *
     * @return the items
     */
    public List<Object> getItems() {
        if (Items == null) {
            Items = new ArrayList<>();
        }
        return Items;
    }
}
